package com.xtkj.superclub_entity.entity.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author lizheqi
 * @create 2019-12-25-10:38
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("product")
public class Product implements Serializable {
    @TableId(value = "pro_id",type = IdType.INPUT)
    private String proId;//商品编号
    private String proName;//商品名称
    private String descript;//商品描述
    private double price;//商品单价
    private String epcId;
    @TableField(exist = false)
    private ProType epcType;//一级分类
    private String epcChildId;
    @TableField(exist = false)
    private ProType epcChildType;//二级分类
    private String img;//图片地址
    private int hot;//热销商品
    private int ground;//上架销售
}
